package com.zwj.entity;

import java.sql.Date;


/**
 * <p>Title: OrderDetail</p>  
 * <p>Description: 订单详情</p>  
 * @author  杰
 * @date  2019年5月28日
 */
public class ZOrderDetail {

	//订单详细编号
	private Integer detail_id;
	//订单编号
	private Integer order_id;
	//商品编号
	private Integer product_id;
	//商品名称
	private String product_name;
	//商品价格
	private double product_price;
	//商品数量
	private int product_quantity;
	//创建时间
	private Date create_time;
	//修改时间
	private Date update_time;
	
	public Integer getDetail_id() {
		return detail_id;
	}
	public void setDetail_id(Integer detail_id) {
		this.detail_id = detail_id;
	}
	public Integer getOrder_id() {
		return order_id;
	}
	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}
	public Integer getProduct_id() {
		return product_id;
	}
	public void setProduct_id(Integer product_id) {
		this.product_id = product_id;
	}
	public String getProduct_name() {
		return product_name;
	}
	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}
	public double getProduct_price() {
		return product_price;
	}
	public void setProduct_price(double product_price) {
		this.product_price = product_price;
	}
	public int getProduct_quantity() {
		return product_quantity;
	}
	public void setProduct_quantity(int product_quantity) {
		this.product_quantity = product_quantity;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	
	@Override
	public String toString() {
		return "ZOrderDetail [detail_id=" + detail_id + ", order_id=" + order_id + ", product_id=" + product_id
				+ ", product_name=" + product_name + ", product_price=" + product_price + ", product_quantity="
				+ product_quantity + ", create_time=" + create_time + ", update_time=" + update_time + "]";
	}
	public ZOrderDetail() {
		super();
		// TODO Auto-generated constructor stub
	}
	public ZOrderDetail(Integer order_id, Integer product_id, String product_name, double product_price,
			int product_quantity) {
		super();
		this.order_id = order_id;
		this.product_id = product_id;
		this.product_name = product_name;
		this.product_price = product_price;
		this.product_quantity = product_quantity;
	}
	
}
